package diona.model

import org.joda.time.DateTime
import diona.search.PostInfo
import diona.search.yasearch.YaSearch

/**
 * User: anton
 * Date: 05.07.11 21:39
 */
object LjSearch {
  def search(queryText: String): List[PostInfo] =
  {
    if (queryText == null || queryText.length() == 0) return Nil
    val now = new DateTime()
    YaSearch.search("inurl:livejournal " + queryText, now.minusMonths(10), now)
  }
}